#ifndef HEADERS_PROC_CONTROL
#define HEADERS_PROC_CONTROL

#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>

#include "cluster.h"

struct thread_list {
    pthread_t* thread;
    void* retval;
    cluster* cl;
    struct thread_list* next;
};

typedef struct thread_list thread_list;

void cl_process_jobs(cluster* cl);
void* cl_invoke_in_thread(void* cl);

#endif
